/*
 * jxSwing Project (2014)
 * 
 * by Denilson Edinaldo Pinto
 * 
 * LGPL
 * Copyright (C) 2014
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.jxSwing.component.dialog;

import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import java.awt.Window;

import org.jxSwing.component.label.OperatingSystemLabel;
import org.jxUtils.check.CheckUtil;
import org.jxUtils.i18n.I18N;

/**
 * @author Denilson Edinaldo Pinto
 * @porject jxSwing
 * @package org.jxSwing.component.dialog
 * @date 23/11/2014 - 10:48:36
 */
public final class OperatingSystemDialog extends Dialog {
	
	private static final long serialVersionUID = -6184031530434426834L;
	
	/**
	 * 
	 */
	public OperatingSystemDialog() {
	
		super();
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param modal
	 */
	public OperatingSystemDialog(java.awt.Dialog owner, boolean modal) {
	
		super(owner, modal);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 * @param modal
	 * @param gc
	 */
	public OperatingSystemDialog(java.awt.Dialog owner, String title, boolean modal, GraphicsConfiguration gc) {
	
		super(owner, title, modal, gc);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 * @param modal
	 */
	public OperatingSystemDialog(java.awt.Dialog owner, String title, boolean modal) {
	
		super(owner, title, modal);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 */
	public OperatingSystemDialog(java.awt.Dialog owner, String title) {
	
		super(owner, title);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 */
	public OperatingSystemDialog(java.awt.Dialog owner) {
	
		super(owner);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param modal
	 */
	public OperatingSystemDialog(Frame owner, boolean modal) {
	
		super(owner, modal);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 * @param modal
	 * @param gc
	 */
	public OperatingSystemDialog(Frame owner, String title, boolean modal, GraphicsConfiguration gc) {
	
		super(owner, title, modal, gc);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 * @param modal
	 */
	public OperatingSystemDialog(Frame owner, String title, boolean modal) {
	
		super(owner, title, modal);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 */
	public OperatingSystemDialog(Frame owner, String title) {
	
		super(owner, title);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 */
	public OperatingSystemDialog(Frame owner) {
	
		super(owner);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param modalityType
	 */
	public OperatingSystemDialog(Window owner, ModalityType modalityType) {
	
		super(owner, modalityType);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 * @param modalityType
	 * @param gc
	 */
	public OperatingSystemDialog(Window owner, String title, ModalityType modalityType, GraphicsConfiguration gc) {
	
		super(owner, title, modalityType, gc);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 * @param modalityType
	 */
	public OperatingSystemDialog(Window owner, String title, ModalityType modalityType) {
	
		super(owner, title, modalityType);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 * @param title
	 */
	public OperatingSystemDialog(Window owner, String title) {
	
		super(owner, title);
		
		initGUI();
	}
	
	/**
	 * @param owner
	 */
	public OperatingSystemDialog(Window owner) {
	
		super(owner);
		
		initGUI();
	}
	
	/**
	 * 
	 */
	private void initGUI() {
	
		add(new OperatingSystemLabel(true));
		
		setTitle(CheckUtil.isNullOrAbsoluteEmpty(getTitle()) ? I18N.system().operatingSystem() : getTitle());
		setSize(325, 225);
		setResizable(false);
		centralize();
	}
}
